package cn.edu.zafu.bigdata.x.huangxihao202211080211;

class Course11 {
    String cname;
    int chour;
    double ccredit;
    String cteacher;
    public Course11(String name, int hour, double credit, String teacher){
        this.cname=name;
        this.chour=hour;
        this.ccredit=credit;
        this.cteacher=teacher;
    }
    public void cnumber(int number){
        System.out.println("上课人数："+number);
    }
    public void cprint() {
        System.out.println("课程信息：");
        System.out.println("课程名称：" + this.cname);
        System.out.println("学时：" + this.chour);
        System.out.println("学分：" + this.ccredit);
        System.out.println("授课老师：" + this.cteacher);
        System.out.println();
    }

}
public class Course211{
    public static void main(String[] args){
        Course11 course=new Course11("JAVA",45,4,"wupeng");
        course.cprint();
        course.cnumber(75);
    }
}
